home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / cross / sasmv14.dms / sasmv14.adf / examples / structure.s < prev   
Text File  |  1993-05-22  |  576b  |  29 lines

  1.  
  2. -- Little Structure Example --
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4.         rsreset
  5. sym_Status    rs.w    0
  6. sym_Value    rs.l    0
  7. sym_Name    rs.b    "the contents are ignored...   "    ;30 chars!
  8. sym_IncX    rs.b    0,0
  9. sym_IncY    rs.b    0,0
  10. sym_Next    rs.l    0
  11. sym_Check    rs.l    ""     ;will do a warning...
  12. sym_Fin        rs.b    0
  13.  
  14.  
  15.  
  16. ;This piece of code will just do well like the following
  17. ;-------------------------------------------------------
  18.  
  19. sym_Status    EQU    0
  20. sym_Value    EQU    2
  21. sym_Name    EQU    6
  22. sym_IncX    EQU    36
  23. sym_IncY    EQU    38
  24. sym_Next    EQU    40
  25. sym_Check    EQU    44
  26. sym_Fin        EQU    44
  27.  
  28. ;But the first version is much more nicer, isn't it?
  29.